<?php
$title = __template_get("title");
$resources = __template_get("resources");
?>
<div class="gallery">
<? if(!empty($resources)){?>
	<h2><?= __('catalog','gallery_title')?></h2>
	<? foreach($resources as $resource){?>
		<?= Html::image(__imageSizer("webapp/public/media/".$resource->url,"mini"),
				"webapp/public/media/".$resource->url,
				Html::db($title).
					(!empty($resource->name) ? " - ".Html::db($resource->name)."\n" : "").	
					(!empty($resource->description) ? " - ".Html::db($resource->description) : ""),
				"screenshot",
				"screenshots") ?>
	<? }?>
<? }else{?>
	<p><?= __('catalog','gallery_no_screenshot')?></p>
<? }?>
	<div class="spacer"></div>
</div>
